var $path_url = $('base').attr('href');
var controller = $('base').attr('data-controller');

$(document).ready(function(){

    var descricao = document.getElementById("descricao");
    if(descricao != null) {

        var editor = CKEDITOR.replace( 'descricao', {
            filebrowserBrowseUrl :      '../assets/js/plugins/ckeditor/ckfinder/ckfinder.html',
            filebrowserImageBrowseUrl : '../assets/js/plugins/ckeditor/ckfinder/ckfinder.html?type=Images',
            filebrowserFlashBrowseUrl : '../assets/js/plugins/ckeditor/ckfinder/ckfinder.html?type=Flash',
            filebrowserUploadUrl :      '../assets/js/plugins/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
            filebrowserImageUploadUrl : '../assets/js/plugins/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
            filebrowserFlashUploadUrl : '../assets/js/plugins/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
        });

    }

});